import api from '@/utils/http.js'

export const appointmentInsert = async (data) => {
    return await api.post('/insertAppointment', data)
}

export const appointmentSelectPageByUser = async (data) => {
    return await api.get('/appointment/page', { params: data })
}

export const appointmentSelectByDoctor = async (data) => {
    return await api.get('appointment/doctor/page', { params: data })
}


export const appointmentHandler = async (data) => {
    return await api.get('/appointment/config', { params: data })
}
